<?php
/**
 * Created by PhpStorm.
 * User: edmmss
 * Date: 2018/11/15
 * Time: 14:20
 */

namespace app\modules\adapter;


class EBook implements EBookInterface
{
    private $_page;

    private $_totalPages = 100;

    /**
     * className
     *
     * @date   2018/11/15
     * @author edmmss
     * @return mixed
     */
    public function unlock()
    {
        // TODO: Implement unlock() method.
        $this->_page = 1;
    }

    /**
     * className
     *
     * @date   2018/11/15
     * @author edmmss
     * @return mixed
     */
    public function pressNext()
    {
        // TODO: Implement pressNext() method.
        $this->_page++;
    }

    /**
     * className
     *
     * @date   2018/11/15
     * @author edmmss
     * @return array
     */
    public function getPage(): array
    {
        // TODO: Implement getPage() method.
        return [$this->_page, $this->_totalPages];
    }

}